#include "Device.h"

Device::Device()
    : m_port(502), m_slaveId(1), m_status("offline")
{
}

Device::Device(const QString &deviceId, const QString &deviceName, const QString &ipAddress)
    : m_deviceId(deviceId),
      m_deviceName(deviceName),
      m_ipAddress(ipAddress),
      m_port(502),
      m_slaveId(1),
      m_status("offline"),
      m_createdAt(QDateTime::currentDateTime())
{
}
